﻿//-----------------------------------------------------------------------
// <copyright file="CorporationNewFactory.cs" company="Mulala">
//     Copyright Mulala. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

namespace Mulala.Cavan.Domain.MainBoundedContext.CorporationModule
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;

    public static class CorporationNewFactory
    {
        public static CorporationNew CreateCorporationNew(
                                            Corporation corporation, 
                                            string title, 
                                            string content, 
                                            CorporationIdentifier.NewsType type, 
                                            int viewTotal,
                                            CorporationIdentifier.NewStatus newStatus,
                                            DateTime editTime, 
                                            string editUser)
        {
            CorporationNew corporationNew = new CorporationNew();
            corporationNew.Content = content;
            corporationNew.Corporation = corporation;
            corporationNew.Title = title;
            corporationNew.Type = type;
            corporationNew.ViewTotal = viewTotal;
            corporationNew.NewStatus = newStatus;
            corporationNew.EditTime = editTime;
            corporationNew.EditUser = editUser;
            corporationNew.CreateTime = DateTime.Now;

            return corporationNew;
        }
    }
}
